home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / et-2_2.lha / et2.2 / src / StreamConnection.h < prev    next >
C/C++ Source or Header  |  1990-12-06  |  674b  |  30 lines

  1. #ifndef StreamConnection_First
  2. #ifdef __GNUG__
  3. #pragma once
  4. #endif
  5. #define StreamConnection_First
  6.  
  7. #include <stdio.h>
  8. #include "System.h"
  9. #include "SUNWINDOW/Clipboard.h"
  10.  
  11. //---- StreamConnection --------------------------------------------------------
  12.  
  13. class StreamConnection : public SysEvtHandler {
  14. protected:
  15.     FILE *ifp, *ofp;
  16.     
  17. public:
  18.     StreamConnection(int);
  19.     ~StreamConnection();
  20.     
  21.     bool Open(int fd);
  22.     void send(ServerMessages tag, byte *buf= 0, u_long l= 0);
  23.     ServerMessages Receive(byte**, u_long*);
  24.     void Notify(SysEventCodes, int);
  25.     virtual void Dispatch(ServerMessages m, byte *buf, u_long len);
  26. };
  27.  
  28. #endif StreamConnection_First
  29.  
  30.